package com.example.demo.controller.bug;

import com.example.demo.service.bug.BugService;
import com.example.demo.vo.bug.BugInfoVO;
import com.example.demo.vo.ResultVO;
import com.example.demo.vo.coreport.CoreportInfoVO;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/bug")
public class BugController {
    @Resource
    BugService bugService;

    @GetMapping("/getInfoByReport")
    ResultVO<List<BugInfoVO>> getInfoByReport(@RequestParam int rid){
        return bugService.getInfoByReport(rid);
    }

}
